package com.smz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class TProductHandover {


    private int id;
    private int depotId;
    private String num;
    // 前端显示正确的格式
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private java.sql.Timestamp handoverDate;
    private String head;
    private String remoke;
    private String state;
    private String type;
    private Integer departmentId;
    private Integer commodityId;
    private Integer orderId;

    @TableField(exist = false)
    private TMenu menu;
    @TableField(exist = false)
    private Commodity commodity;
    @TableField(exist = false)
    private TDepartment department;
    @TableField(exist = false)
    private TProductOrder productOrder;
    @TableField(exist = false)
    private Commodity phoAndC;

}
